for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
class NodeForm {
/**
* Show this form in a jQueryUI dialog
*
* @return {void}
*/
show() {
this.hasBeenOpened = true;
this.$form.dialog({
title: this.name,
width: 800,
appendTo: '.dokuwiki',
});
}
* Hide this form/dialog
hide() {
if (this.hasBeenOpened) {
this.$form.dialog('close');
* Bind a callback to an event on the form
* @param {string} eventName name of the event, can contain namespaces (e.g. click.myPlugin )
* @param {function} callback the handler function to be attached to the event
on(eventName, callback) {
this.$form.on(eventName, callback);
* Remove a handler from an event
off(eventName) {
this.$form.off(eventName);
destroy() {
this.$form.remove();
export default NodeForm;